package edu.sctu.practice.class01.zhangwang.assigns.assign01;

/**
 * Created by Z_W on 2015/10/8.
 */
public class ResultRational {
    public static void main(String[] args) {
        double a = 2;
        double b = 6;
        Rational rational = new Rational(a,b);

        System.out.println(a+"+"+b+"=" + rational.getAdd());
        System.out.println(a+"-"+b+"="+rational.getReduce());
        System.out.println(a+"*"+b+"="+rational.getMultiply());
        System.out.println(a+"/"+b+"="+rational.getDivide());
    }
}
